home *** CD-ROM | disk | FTP | other *** search
- Path: gryphon.phoenix.net!usenet
- From: brucew@phoenix.net (Bruce Wedding)
- Newsgroups: comp.lang.c
- Subject: Re: changing strings via pointers
- Date: Sat, 24 Feb 1996 23:11:06 GMT
- Organization: BranPaul Systems
- Message-ID: <4go60d$g5d@gryphon.phoenix.net>
- References: <1996Feb22.125436.25503@leeds.ac.uk> <4gi8v4$alk@fcnews.fc.hp.com>
- NNTP-Posting-Host: dial105.phoenix.net
- X-Newsreader: Moe's Newsreader
-
- In comp.lang.c
- Rick Wells <rwells> wrote:
-
- >>The thing is, I want to get rid of the "\n" and replace it with "\0", but
- >>obviously I can only do this using the pointer. I'm using the following code:
-
- I learned a very simple way to do this from Jerry Coffin:
-
- strtok( buf, "\n");
-
-
- Bruce D. Wedding Have Compiler, Will Travel!
- Perspicacious Programming Performed Promptly
- Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
-
-